<?php
    /*引入类文件*/
    require_once(dirname(__FILE__).'/core/Tool.php');
    use tool\core\Tool;
    /*写入日志*/
    $arr = array(
        'name'=>'肖雨',
        'age'=>29
    );
    Tool::writeLog($arr,'test');
    /*删除日志*/
    //$path = dirname(__FILE__).'/log/test/201903/25.text';
    //Tool::deleteFile($path);
    //Tool::delDirAndFile($path);
    //Tool::mkFile($path);